package com.pci.netty.business.impl;

import com.pci.netty.business.IHandler;
import com.pci.netty.dto.RequestPayload;
import com.pci.netty.util.ResponseUtils;
import io.netty.channel.ChannelHandlerContext;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component("4000")
@Slf4j
public class HeartbeatHandler implements IHandler {
    @Override
    public void handler(RequestPayload payload, ChannelHandlerContext ctx) {
        log.info("心跳");
        ResponseUtils.successful(payload.getHead(),null,ctx);
    }
}
